package pages;

import net.thucydides.core.annotations.DefaultUrl;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

import pages.AbstractPage;

@DefaultUrl("http://internetowykantor.pl")
public class Index extends AbstractPage{

	@FindBy(xpath = "//tr[@id='waluta-EUR']/td[@class='kurs_kupna']")
	private WebElement buyPriceEuro;
	
	@FindBy(xpath = "//tr[@id='waluta-EUR']/td[@class='kurs_sprzedazy']")
	private WebElement sellPriceEuro;
	
	public Index(WebDriver driver) {
		super(driver);
	}
	
	public void printEuroPrice(){
		System.out.println("Kurs kupna EURO = " + buyPriceEuro.getText());
		System.out.println("Kurs sprzedazy EURO = " + sellPriceEuro.getText());
	}

}
